#include <iostream>

using namespace std;

void Con_Vol_variable()
{
	const volatile int local = 10;
	int* ptr = (int*)&local;

	printf("Initial value of local : %d \n", local);

	*ptr = 100;

	printf("Modified value of local: %d \n", local);
}

void Con_NonVol_variable()
{
	const int local = 10;
	int* ptr = (int*)&local;

	printf("Initial value of local : %d \n", local);

	*ptr = 100;

	printf("Modified value of local: %d \n", local);
}


int main()
{
	Con_Vol_variable();
	Con_NonVol_variable();
	return 0;
}